package com.groupbuying.provider.dao;


import com.groupbuying.provider.domain.StoreMainInfoDO;
import com.groupbuying.provider.dto.StoreManageExportPageDTO;
import com.groupbuying.provider.dto.StoreOperDTO;
import com.groupbuying.provider.dto.StoreShopAuditPageDTO;
import com.groupbuying.provider.dto.StoreShopManagePageDTO;
import com.groupbuying.provider.utils.Query;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 商户主信息
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-24 10:31:25
 */
@Mapper
@Repository
public interface StoreMainInfoDao {

	StoreMainInfoDO get(String uuid);
	
	List<StoreMainInfoDO> list(Map<String, Object> map);
	int count(Map<String, Object> map);
	/**
	 * 查询列表页
	 * @param query
	 * @return
	 */
    List<StoreShopAuditPageDTO> getListByPage(Query query);

	/**
	 * 门店查询管理列表页
	 * @param query
	 * @return
	 */
	List<StoreShopManagePageDTO> getListByManagePage(Query query);

	List<Map<String, String>> getUuidAndStoreName();


	/**
	 * 门店查询运营人员
	 * @param query
	 * @return
	 */
	List<StoreOperDTO> getStoreOperList(Query query);

	/**
	 * 通过收银台id获取商户信息
	 * */
	Map getStoreInfoByCounterUuid(String counterid);



	/**
	 * 获取导出列表
	 * @param query
	 * @return
	 */
	List<StoreManageExportPageDTO> getExportStoreMangeList(Query query);

	/**
	 * 获取财务查看的商户审核列表
	 * @param query
	 * @return
	 */
    List<StoreShopAuditPageDTO> getListByPageInFinance(Query query);
	/**
	 * 服务商后台:门店管理列表查询
	 * @param map
	 * @return
	 */
	List<StoreMainInfoDO> getShopList(Map<String, Object> map);

	/**
	 * 服务商后台:门店管理列表总条数
	 * @param map
	 * @return
	 */
	int getShopCount(Map<String, Object> map);

	/**
	 * 查询提现商家列表
	 * @param queryMap
	 * @return
	 */
    List<StoreMainInfoDO> getWithdrawStoreList(Map queryMap);
}
